package com.yhally.seata.account.dao;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.math.BigDecimal;
/**
 *
 * @author wangyu
 * @version 1.0
 * @date 2022/5/6 23:00
 */
@Mapper
public interface AccountDao {

    int decrease(@Param("userId") Long userId,
                 @Param("money") BigDecimal money);

}
